package com.migo.service;

import com.migo.entity.PvMgFirmwareVerisonEntity;

import java.util.List;
import java.util.Map;

/**
 * MG10固件对应版本信息表
 * 
 * @author powervision
 * @email wes.wang@powervision.me
 * @date 2021-03-11 14:11:21
 */
public interface PvMgFirmwareVerisonService {
	
	PvMgFirmwareVerisonEntity queryObject(Integer id);
	
	List<PvMgFirmwareVerisonEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(PvMgFirmwareVerisonEntity pvMgFirmwareVerison);
	
	void update(PvMgFirmwareVerisonEntity pvMgFirmwareVerison);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	PvMgFirmwareVerisonEntity queryMatchBigVision(String app_vision);

	PvMgFirmwareVerisonEntity queryByBigVersion (String big_version);

	PvMgFirmwareVerisonEntity queryLastVersion(String gm_version,String pd_version,String bt_version,String pdrs_version);

	PvMgFirmwareVerisonEntity queryTheLatestVersion();

	/**
	 * 刷新固件缓存
	 */
	boolean flushFirmwareCache();
}
